package com.qujoy.cloud.order.feign;

import com.qujoy.cloud.order.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "user-service", fallback = UserFeignServiceFallBack.class)
public interface UserFeignService {

    @RequestMapping(value = "user/getByID/{userID}", method = RequestMethod.GET)
    User getByID(@PathVariable("userID") Long userID);

}